Adds validation of alerts