fixed date issue, now returns errors messages if value do not match the format in the documentation