Validator and some stuff