Starting the ajax fixes

Was working on registration in index.php