Added an extra validation to shared links