Science confirms that dogs can recognize a bad person