add mongoose and login&register