Creating a sessions controller with log in functionality