Add form validation for user registration