Added Validation

Added validation