Added some error checking to the signup form.