[cyril] changed login and pn register to deal with bad content-type.