Created an index session handler

- returning to login page takes you to homepage if you are logged in now