add form validation to edit profile page