Added invite code validation