added log in fuctionality with sessions model, controller, view