Implement basic validation

I did implement basic validation.
If you hope this PR,  Would you accept this Pull Request ?