Fix Login session bug