Session and Logout Implemented

Implemented Session and Logout mechanism. 
Corrected minor variable bug in user_controller