implements create new account api