You write:

  // Add the javascript from the user module (to use it's password strength/verification)
  if (variable_get('cse_edit_weight',1)>0) {
    drupal_add_js(drupal_get_path('module', 'user') .'/user.js');

when it must be:

  // Add the javascript from the user module (to use it's password strength/verification)
  if (variable_get('cse_user_password',1)>0) {
    drupal_add_js(drupal_get_path('module', 'user') .'/user.js');