Update authentication.js