Use api for user creation