add user and login locally