fix the login page so errors work now