Fix typo and Ajax on register process