Refactored main reddit class to handle login