fixed cookies not being deleted on failed login attempt