solved the problem of sanitizing inputs
cleaned up input tag sanitation routines