made changes in authentication.js