added methods to validate the gateway options