initial post-survey support
enhanced support for postsurvey, change STUDY_COMPLETE flag to true
fix infinite redirection loop