Added alerts with error messages