Chain-length dependent rheology and relaxation dynamics in glass-forming polymers