Refactor/validations

well, maybe using a Number makes the validation simpler in these cases (just min/max)