exposed user object to the views
allowed sessions to be stored in database and added a global config file