refactor, use redis to check user