How to avoid Submission without clicking on Submit button?