Add ajax to register form.