Modified index.js and login.js as per requirements