add time check on server side