added specs for login.js