Added API calls for authentication.