handlers into app and updated validation functions