Add confirmation mail and unregistering
Extract checking to worker