basic ajax registration error management