toggle input active state on blur