Validation logic and web services.