fixed postsolution postquestion bug, refactored code, and added getUserId script