Fixed leader registration

Fixed leader registration(now we use another smtp server for sending messages)
Fixed leader delete action.