update register button and time condition