register: form storage and validation

* Adds validation for all the fields and prints the errors.

* Stores in the session the fields' values after submission.