Fixed bugs in session service. Added logs to api controller