refactored all selectors, resolved login UI bugs