Implements alpha validation function