Fix bug with user profile validation