Added form validation to user profile page