Added API method for creating users.