fixed app login and connect peer