fix login.js for and optimize actions