issue #20214: wrong username does not take user to error page