adding validations and testing them