refactored codes for querying, accept or deny member submission will now respond with a status message