added login.js and login.php