Logout Functionality & Bug Fix

Added a function to log users out. Also fixed a bug where the cookie
path wasn't being set correctly causing people not to remain logged in.