Redirect to the home page when logged out
Use timezone aware dates