add validation to the app