Fix duplicate link, improve submit page and login failure reporting