Implemented validation rules and created unit and integration test