Add maxlength to input field

Add maxlength attribute to input field to only allow a maximum length
of 4 characters