added newpost2 and register2