public static boolean verifyNewPatient(NewPatientPage newPatient){
		Patient patient = new Patient();
		if(InputChecker.name(newPatient.getfName().getText())){
			patient.setFirstName(newPatient.getfName().getText());
			if(InputChecker.name(newPatient.getfName().getText())){
				patient.setLastName(newPatient.getlName().getText());
				if(InputChecker.fullName(newPatient.getDoctor().getText())){
					patient.setPrimaryDoc(newPatient.getDoctor().getText());
					if(InputChecker.phone(newPatient.getPhone().getText())){
						patient.setPhone(newPatient.getPhone().getText());
						if(newPatient.getAddress().getText()!=null){
							patient.setAddress(newPatient.getAddress().getText());
							if(newPatient.getDoB().getText()!=null){
								if(InputChecker.dob(newPatient.getDoB().getText()))
									return true;
								else System.out.println("invalid format for Dob");
							}else
								System.out.println("wrong format for DoB");
						}else
						System.out.println("wrong format for address");
					}else
						System.out.println("wrong format for phone");
				}else
					System.out.println("wrong format for doc name");
			}else
				System.out.println("wrong format for last name");
		}else
			System.out.println("wrong format for first name");
		return false;
	}