in middle of button validation