Corrected handling of login time cookie