Fixed bug with user profile validadtion