added validation on admitted patient in registration