First write of user API, need to test