Code now allows user to log in and log out. Very basic cookie auth has been implemented.