The 1844 Railway Regulation Act made it a legal requirement that the GWR, along with all other British railways, had to serve each station with trains which included third-class accommodation at a fare of not more than one penny per mile and a speed of at least 12 mph .