public ValidationErrorList validate(){
		
		Person person = patient.getPerson();
		ValidationErrorList errorList = new ValidationErrorList();
		Validator instance = ESAPI.validator();
		DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
			
		if ( (instance.getValidInput("username", userAccount.getUsername(), "Name", 255, false, errorList) == null )
		                                    ||
		     (instance.getValidInput("password", userAccount.getPassword(), "Name", 255, false, errorList) == null )
		                                    ||
		     (instance.getValidInput("FirstName", person.getFirstName(), "Name", 255, false, errorList) == null )
						                    ||
		     (instance.getValidInput("LastName", person.getLastName(), "Name", 255, false, errorList) == null )
				                             ||
			 (instance.getValidInput("EmailID", person.getEmailId(), "Email", 255, false, errorList) == null )
					                         ||
			 (instance.getValidInput("Address", person.getAddress(), "Address", 255, false, errorList) == null )
					                         ||
			 (instance.getValidInput("Phone", person.getPhone(), "Phone", 15, false, errorList) == null )
					                        ||
		     (instance.getValidInput("SSN", person.getSsn(), "Name", 15, false, errorList) == null )
				                              ||	     
		     (instance.getValidDate("Dob", df.format(person.getDob()), 
				    		 DateFormat.getDateInstance(DateFormat.SHORT, Locale.US), false, errorList) == null)
   
		   )
		 {
			logger.info("Patient Validation Failed");
		 }
		 return errorList;
	  }