Fixed bug in date picker.
Added security class.