Added validator file with basic validator for checking length