Bernstein theorem and regularity for a class of monge-ampére equations