Fixed error with patient registration from dashboard