modified logins controller, proceding to sessions controller(hard one)