Fixes sets and reads username cookie. Body-length dynamically created