adding #error_alert to application_controller to be dryer