Correction for filter_var

Updated filter_var call, cleaned up use of sanitizeInput