Fixed bug with user profile validation.