Fixed ajax problem on registration form.