index.html AJAX implemented

verify redirect, login redirect, or error message on index.html