added new login modes. added a new test