Added main.js and edited login.html