Added log out on login view to force session to be destroyed