checkForValidity factored out
timestamp