adds validation methods