fixed login bug after deleting cookies