Replaced calles to function printError from the login page