check proto before login