fixes in register servlet