fixedd bug with user profile validation