fixed bug with Date in Registration