The `badRequest` condition should first do an `isNaN(val)` check, then check the `LIMITS`. If any of those are true, then it should be a bad request.