fix bug with user profile validation