Registration form validation implemented