date and content validation added