corrected onclick binding for register button