generated home and sessions controllers, added code for them