added datetime to error log
implemented validation