fix registration ajax