add the function of reg&login&post