Head First AJAX Chap 05 - added register button functionality