Adding data validation for the id obtained from the URL.