Added user functionality to API