Adding alert messages for validating