Creating sessions controller, enabling login/logout functionality and making a navigationbar