Added menu functionality and data validation.