Added validation on profile page.