fixed bugs with user profile validation