add login js file
update for login function