add virtual attribute login_type to user.