Validation on the passed params