custom field constructor in play framework