moved login related code to login.js..modifications for remove column