Hi Rajendran,
I hope cause validation property in the button control is making this weird things to happen.
Try refering this link
Link[
^]
Once you clicked validation is set to true so it is allowing to work on the second click I believe.
Regards,
RK