The functionality of the Reset button is already provided by HTML. You don't need to add any JavaScript or define a button.

Login Id:

Password: