Fixed a bug on user profile validation