Click handler for register button