fix the bug of the button and ref for signuppage