title: JOMSOCIAL INVALID TOKEN ERROR
body: <p>Evry time while logging in an error "INVALID TOKEN" its shown at the joomla2.5/jomsocial2.4 site, but after 2,3 refreshes it shows the profile page as logged in... why is it so.... Is it problem of Joomla... I have uninstalled a plugin alphauserpoints ... is that a problem.. or should i  modify the code default.php </p>
  
  <pre><code>&lt;?php
  
  // no direct access
  defined('_JEXEC') or die;
  JHtml::_('behavior.keepalive');
  ?&gt;
  &lt;?php if ($type == 'logout') : ?&gt;
  &lt;form action="&lt;?php echo JRoute::_('index.php', true, $params-&gt;get('usesecure')); ?&gt;"     method="post" id="login-form"&gt;
  
  &lt;?php if ($params-&gt;get('greeting')) : ?&gt;
  &lt;div class="login-greeting"&gt;
  &lt;?php if($params-&gt;get('name') == 0) : {
      echo JText::sprintf('MOD_LOGIN_HINAME', $user-&gt;get('name'));
  } else : {
      echo JText::sprintf('MOD_LOGIN_HINAME', $user-&gt;get('username'));
  } endif; ?&gt;
  &lt;/div&gt;
  &lt;?php endif; ?&gt;
  &lt;div class="logout-button"&gt;
      &lt;input type="submit" name="Submit" class="button" value="&lt;?php echo         JText::_('JLOGOUT'); ?&gt;" /&gt;
      &lt;input type="hidden" name="option" value="com_users" /&gt;
      &lt;input type="hidden" name="task" value="user.logout" /&gt;
      &lt;input type="hidden" name="return" value="&lt;?php echo $return; ?&gt;" /&gt;
      &lt;?php echo JHtml::_('form.token'); ?&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  &lt;?php else : ?&gt;
  &lt;form action="&lt;?php echo JRoute::_('index.php', true, $params-&gt;get('usesecure')); ?&gt;"     method="post" id="login-form" &gt;
  &lt;?php if ($params-&gt;get('pretext')): ?&gt;
      &lt;div class="pretext"&gt;
      &lt;p&gt;&lt;?php echo $params-&gt;get('pretext'); ?&gt;&lt;/p&gt;
      &lt;/div&gt;
  &lt;?php endif; ?&gt;
  &lt;fieldset class="userdata"&gt;
  &lt;p id="form-login-username"&gt;
      &lt;label for="modlgn-username"&gt;&lt;?php echo                                        JText::_('MOD_LOGIN_VALUE_USERNAME') ?&gt;&lt;/label&gt;
      &lt;input id="modlgn-username" type="text" name="username" class="inputbox"  size="18" /&gt;
  &lt;/p&gt;
  &lt;p id="form-login-password"&gt;
      &lt;label for="modlgn-passwd"&gt;&lt;?php echo JText::_('JGLOBAL_PASSWORD') ?&gt;&lt;/label&gt;
      &lt;input id="modlgn-passwd" type="password" name="password" class="inputbox" size="18"  /&gt;
  &lt;/p&gt;
  &lt;?php if (JPluginHelper::isEnabled('system', 'remember')) : ?&gt;
  &lt;p id="form-login-remember"&gt;
      &lt;label for="modlgn-remember"&gt;&lt;?php echo JText::_('MOD_LOGIN_REMEMBER_ME') ?&gt;&lt;/label&gt;
      &lt;input id="modlgn-remember" type="checkbox" name="remember" class="inputbox" value="yes"/&gt;
  &lt;/p&gt;
  &lt;?php endif; ?&gt;
  &lt;input type="submit" name="Submit" class="button" value="&lt;?php echo JText::_('JLOGIN') ?&gt;" /&gt;
  &lt;input type="hidden" name="option" value="com_users" /&gt;
  &lt;input type="hidden" name="task" value="user.login" /&gt;
  &lt;input type="hidden" name="return" value="&lt;?php echo $return; ?&gt;" /&gt;
  &lt;?php echo JHtml::_('form.token'); ?&gt;
  &lt;/fieldset&gt;
  &lt;ul&gt;
      &lt;li&gt;
          &lt;a href="&lt;?php echo JRoute::_('index.php?option=com_users&amp;view=reset'); ?&gt;"&gt;
          &lt;?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?&gt;&lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;a href="&lt;?php echo JRoute::_('index.php?option=com_users&amp;view=remind'); ?&gt;"&gt;
          &lt;?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?&gt;&lt;/a&gt;
      &lt;/li&gt;
      &lt;?php
      $usersConfig = JComponentHelper::getParams('com_users');
      if ($usersConfig-&gt;get('allowUserRegistration')) : ?&gt;
      &lt;li&gt;
          &lt;a href="&lt;?php echo JRoute::_('index.php?option=com_users&amp;view=registration'); ?&gt;"&gt;
              &lt;?php echo JText::_('MOD_LOGIN_REGISTER'); ?&gt;&lt;/a&gt;
      &lt;/li&gt;
      &lt;?php endif; ?&gt;
  &lt;/ul&gt;
  &lt;?php if ($params-&gt;get('posttext')): ?&gt;
      &lt;div class="posttext"&gt;
      &lt;p&gt;&lt;?php echo $params-&gt;get('posttext'); ?&gt;&lt;/p&gt;
      &lt;/div&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p></p>
  
  
  
  <p>or does the uninstallation affected the configuration file of joomla</p>