more validations, added end date, and added secret key for prod