diff --git a/modules/accredited_representative_portal/app/models/accredited_representative_portal/representative_user.rb b/modules/accredited_representative_portal/app/models/accredited_representative_portal/representative_user.rb index 8ca958530bb..6d0b745390c 100644 --- a/modules/accredited_representative_portal/app/models/accredited_representative_portal/representative_user.rb +++ b/modules/accredited_representative_portal/app/models/accredited_representative_portal/representative_user.rb @@ -23,11 +23,13 @@ class RepresentativeUser < Common::RedisStore alias_attribute :mhv_icn, :icn - validates :uuid, :email, :first_name, :last_name, :icn, presence: true + validates( + :uuid, :user_account_uuid, :email, + :first_name, :last_name, :icn, + presence: true + ) def user_account - return unless user_account_uuid - @user_account ||= UserAccount.find_by(id: user_account_uuid) end