added log in and sessions controller