validation done in profile page