Mixing squared textboxes and rounded buttons

Is it bad UX to make rounded button and squared text box, and which is the best to do?

Sample with squared corner text field and curved button