Implemented validation method