changes and additions to authentication

changed auth() to return uid and email

method to create cookie
method to delete cookie

if valid cookie - show logout button & username
if no cookie or invalid - show register and login buttons

register: checks for invalid info
if valid -> logs in and redirects to homepage