make validations a bit more dry