register and login work; email validation functionality added;

Can't get it to send email from xampp though so have to manually enter
link to validate email.