Sets the `max` validation error key if the value entered is greater than `max`.