Commented out the g_user instantiation to test if g_user is truly an instance of the user object and addition of g_req variable