Realized that the sanitize function wasn't necessary.

After rereading the validation function I realized that the
sanitizeInput function wasn't necessary.