added alerts for validation