Add hook to filter input fields