Correction to session variables on login