Creating a sessions controller, enabling login/logout functionality