changed date input format for register page