adding validation to appointments and nav to app