form validation user create and edit