Implemented validation