This is what happens if I remove the exit from the function:
1. After user is registered it sends a request to /register/?ajax=1 the response is my thank you message
2. The page is redirected to ?registration=complete&ajax=1
I suppose I need to stop the page from being redirected
Thanks