Add account api with authentication. close #3 close #4