Exclude hidden inputs

Please review:) @xliiv @quamilek