fixes for profile form validation