everything mixed together and works. start and end date and email address are now gotten dynamically as per user's input