added working validations for users and admins