Removed req parameters of each function. Used g_req instead. Added a function for handling sign out calls and edited the login function for implementation of login feature