add support fort POST queries;
fixs bugs in register;