Validate the beacon configuration

def validate(config):
    '''
    Validate the beacon configuration
    '''

    try:
        _validate(config)
        return True, 'Valid beacon configuration'
    except ValidationError as error:
        return False, str(error)