Adding some validation methods