added branching statement to Patient Profile, Doctor_Profile mostly functional