fixing routes to redirect / and fix the error message for searchin a patient