add error message for graph and add jquery validate