display errors to the user instead of a blank page