Created forms for the User and created a register function in the view.