A regularity result for a class of elliptic equations with lower order terms