Creating the "onFocus" and "onBlur" events for the inputs