There shouldn't be any need to customize to achieve this. It's built in and should run by default.

A couple of things to check.
  1. Do you have javascript turned off in your browser (dumb I know but I've done it)?
  2. Is your modules/pages/check_account/jscript_form_check.php file present and correct?