Changed to submit using Angular instead of jQuery