Fixed the changes in authentication API