Node module for validating an objects properties