Fixed login redirect if next is not set