index.html and login.html now use ajax-json to display messages