error message on index.html. Correct login redirects to main