added some better error handling gems
made changes to date picker os that it will save