replacing newlines inside the error message with the HTML br tag on error
page to properly dispaly the newlines on the error page