added logic for existing nick