fixed form validation on register page