Fix silly bugs in form-input directive