fixed button refresh issue on register page