Extract validation methods to module