implement registration and form validation checks