finish refreshing the register page when receiving the message