Fix login redirect with POST