simple form errors, client side functions