Need to add 'onblur' and 'onfocus' to complete events for input fields.