Fixed the api gateway for login and getTrainingSession.