Astrophysical constraints on scalar field models