fixed logout flash
fixed post form clearing