migration of login js