form validation for the profile page