Fixed issue where alert was removed when validating.