If the session is empty, it now sends you to the login page with a safed url so it can revert you back to the right page after login