fixed api call issue in Authentication