fixed grade validation