Set minimum / maximum lengths for fields

To prevent required fields being sent as null