added required parameter for fields
fixed issue with dropdown not selecting current value