Fixed registration form validation