Updated patient validation to include null validation.