login and js changes