fix login redirect bug (again)