Jie & Chao: add register and login