added jquery some error messages