Implement user sign-in via API.