Registration form validation works