Simple form validation on registration form now working