proper login redirect and rm unused cfg opt