Adding api call function to reject users