Fix/validates length of min max length

https://www.openproject.org/work_packages/14632
why do you set `max_length` twice here?