added profile form validation