On the bounded slope condition and the validity of the Euler Lagrange equation