Adds sessions and login logout functionality