fixed bug with user profile validation