displaying error and error text