reigster is wonky, dialog not closing correctly. menus refactored to check if authenticated
login working