servlet redirect OK. now let's fix the logic