Fix LoginAction redirect error when doPost.