format input fields on blur