GetUserId, post questions and solutions fixed, refactoring

Still untested from the front-end