connect register button with register page