added user form validation