adding validation methods to NOResourceProtocol