Fixes #1058 Registration Questions issues

Fixes #1058 points: 1st, 2nd, 3rd and 6th and another issue related to the JS error message coming from xmlhttp.php