Added check to prevent users from joining the same app twice