Fixed errors with patient registration on login page.