input verification functionality added. escaping and other securtiy