Remove the unuse library & fix the login redirect