added error messages (validations)