Upload general security class

uploaded general security class for input validation and updated the
example application