updated grading function. usernames now remove whitespaces b/c whitespaces causing errors with grading since name values in form input cannot have spaces