Added logout function

Ends session. Tested user can’t directly access dashboard after logout,
working on getting the back button to not work as well