Few fixes and optimalisations in index.html, added a few logs in login.java