Auth_handler has been made to support both login and logout.
On login, the session is updated with a is_loggedin value.
The base template is sent the is_loggedin value to change display accordingly.
Logout will delete the session and redirect user to the previous page,
if no previous page exists then they will be redirected to home.
Made sure that delete in session_ets returned as expected.