Added a quick validation for the generated expense ID.