improve test for error display in error login