Fixed bugs with user profile validation