Register

validate the form data and send info to the server