added conditional into participate js for returning user