added confirmation of successful registration upon redirect to index.html