common validation methods