added: 添加登录验证的单元测试