Fix for WP alert message on validation