fix login redirect