using javaweb to realize the functions of Login and Regist