added some validation to for joining a game