Fixed bug with user profile validation and add user profile validation test case