fixups on error handling for login