Every corporation operating a railway shall be liable for all damages sustained by any person, including employees of such corporation, in consequence of the neglect of the agents, or by any mismanagement of the engineers, or other employees thereof, and in consequence of the willful wrongs, whether of commission or omission, of such agents, engineers, or other employees, when such wrongs are in any manner connected with the use and operation of any railway on or about which they shall be employed, and no contract which restricts such liability shall be legal or binding.