Adds logout.php and logout functionality.
Email was missing from DB, added it and added corresponding functionality.