completed ajax registration with js effects