inserted validation of graphname