Switching logout to POST
Added redirect for pages if not logged in.
Updated login action