Adds pattern for input with button.