alert removed before login redirect