Added sessions and login to views