Input field constructor