How to combine text field and checkbox