validation in database level
Merge pull request #4 from abhiahirwar/validation

validation in database level