Added validation of registration form.
Added a mailer to send out confirmation mails and stuff.