Maybe it call showAlert in index if login fails