Updated validations on API methods.