Adds auto-layout to textfield