validating command handler