added login through session controller and view