Updated login so that it saves SystemId in Session. Fixed small issue in LogsController