Further work on the signup controller.
Added validation to the signup form.