added functionality for logging out, adding questions to library from rec questions page. added functionality for error handling.