Fixed ajax problem on registration form.

- Adds a submit handler that will call the ajax function AFTER the registration form passes validation. 
- Might want to reconsider moving error message? Maybe?