Fixed bug with user rofile validation