In your own applications, you might consider clearing the username and password when failure occurs because of authentication and adding an error message to the screen.
"In bold and then invokes the aforementioned libxml_display_errors function which displays all of the errors encountered before clearing out the error array."