fix date when registering