Integrated the angular JS for validation