Added logout and user check functionality to controllers. Unittested
Added redirect when user is not logged in and hiding of menu