validate grade when create