grade scale input validation