working validation
workign validation