add private and public and login